package org.nstack.header.vm;

import org.nstack.header.volume.VolumeInventory;
import org.nstack.header.errorcode.ErrorCode;


public interface VmAttachVolumeExtensionPoint {
    void preAttachVolume(VmInstanceInventory vm, VolumeInventory volume);

    void beforeAttachVolume(VmInstanceInventory vm, VolumeInventory volume);

    void afterAttachVolume(VmInstanceInventory vm, VolumeInventory volume);

    void failedToAttachVolume(VmInstanceInventory vm, VolumeInventory volume, ErrorCode errorCode);
}
